const { format } = require('util')
const { ViewTypeEnum } = require('../../utils/cache')

module.exports = function () {
    const opts = this.options
    const name = format('服务器-%s', opts.name || opts.host)
    return {
        viewType: ViewTypeEnum.DIALOG,
        viewOptions: {
            modal: false,
            title: name,
            dialogButtons: ['关闭'],
            size: {
                width: 1200,
                height: 675
            },
            hideFooterSeparator: true
        }
    }
}
